﻿using MediatR;
using ProduceBasicData.Api.DTO.ProductionManage;
using ProduceBasicData.ErrorCode;

namespace ProduceBasicData.Api.Application.Command.ProductionManage
{
    public class GetWorkCommand:IRequest<ApiPaging<WorkOrderDto>>
    {
        /// <summary>
        /// 工单编号
        /// </summary>
        public string? Order_no { get; set; }
        /// <summary>
        /// 工单类型
        /// </summary>
        public string? Work_type { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>
        public int Customer_id { get; set; }
        /// <summary>
        /// Bomid
        /// </summary>
        public int Product_id { get; set; }
        /// <summary>
        /// 车间管理外键
        /// </summary>
        public int WorkshopId { get; set; }
        /// <summary>
        /// 产线id
        /// </summary>
        public int Producttion_id { get; set; }
        /// <summary>
        /// 工单状态 1初始化,2备料中,3已开工
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 5;
    }
}
